<template>
  <BasicDrawer v-bind="$attrs" @register="registerDrawer" title="转账详情" width="800px">
    <Description @register="registerDescription" :data="detailData" />
  </BasicDrawer>
</template>
<script lang="ts" setup>
  import { ref, useAttrs } from 'vue';
  import { BasicDrawer, useDrawerInner } from '/@/components/Drawer';
  import { formDetailSchema } from './transferOrder.data';
  import { Description, useDescription } from '/@/components/Description/index';
  const emit = defineEmits(['register']);
  const attrs = useAttrs();
  const detailData = ref({});
  const [registerDescription] = useDescription({
    bordered: false,
    // data: mockData,
    schema: formDetailSchema,
    labelStyle: {
      marginLeft: '10px'
    }
  });

  const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (data) => {
    setDrawerProps({ confirmLoading: false });
    detailData.value = data.record;
  });
</script>


<style scoped>
</style>